import request from '@/utils/request'

// 查询人才认证申请列表
export function listCertification(query) {
  return request({
    url: '/system/certification/list',
    method: 'get',
    params: query
  })
}

export function approvalCertification(data) {
  return request({
    url: '/system/certification/approval',
    method: 'put',
    data: data
  })
}
// 查询人才认证申请详细
export function getCertification(certificationId) {
  return request({
    url: '/system/certification/' + certificationId,
    method: 'get'
  })
}

// 新增人才认证申请
export function addCertification(data) {
  return request({
    url: '/system/certification',
    method: 'post',
    data: data
  })
}

// 修改人才认证申请
export function updateCertification(data) {
  return request({
    url: '/system/certification',
    method: 'put',
    data: data
  })
}

// 删除人才认证申请
export function delCertification(certificationId) {
  return request({
    url: '/system/certification/' + certificationId,
    method: 'delete'
  })
}
